//
//  GZSelectVideoVC.m
//  YTWaterFlowLayoutDemo
//
//  Created by soco on 2021/4/29.
//  Copyright © 2021 guojunwei. All rights reserved.
//

#import "GZSelectVideoVC.h"
#import "GZSelectVideoView.h"

@interface GZSelectVideoVC ()

@property (nonatomic, strong) GZSelectVideoView *mainView;

@end

@implementation GZSelectVideoVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.view addSubview:self.mainView];
}

- (GZSelectVideoView *)mainView {
    if (!_mainView) {
        __weak typeof(self) weakSelf = self;
        _mainView = [GZSelectVideoView createGZSelectVideoView];
        _mainView.popBlock = ^{
            __strong typeof(self) strongSelf = weakSelf;
            [strongSelf.navigationController popViewControllerAnimated:YES];
        };
    }
    return _mainView;
}

@end
